﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<DHAA.Areas.Administrator.Models.CustomerModels>" %>

  
    <fieldset style="width: 640px">
        <legend>Are you sure you want to delete this?</legend>
                    <div class="Message Error"><%= ViewData["MessageError"] %></div>
        <div class="Message Success"><%= ViewData["MessageSuccess"] %></div>
        <div class="display-label">CustomerID</div>
        <div class="display-field"><%= Html.Encode(Model.CustomerID) %></div>
        <div class="cleared"></div>
        <div class="display-label">UserName</div>
        <div class="display-field"><%= Html.Encode(Model.UserName) %></div>
          <div class="cleared"></div>       
        <div class="display-label">CustomerName</div>
        <div class="display-field"><%= Html.Encode(Model.CustomerName) %></div>
         <div class="cleared"></div>
    </fieldset>
     <% using (Ajax.BeginForm("Delete", "Customer" ,new AjaxOptions { UpdateTargetId = "fancybox-content", LoadingElementId = "loadingIcon", OnBegin = "MvcFormOnBegin", OnSuccess = "MvcFormOnSuccess", OnComplete = "MvcFormOnComplete", OnFailure = "MvcFormOnFailure" }))
      {
   %>
         <div class="cleared-top-5"></div>
            <div>
                <input type="submit" value="Delete" /><div id="loadingIcon"></div><input type="button" onclick="$.fancybox.close()" value="Cancel"/>
            </div>
            <div class="cleared"></div>
    <% } %>


